package com.tuanzi.loan.business.service.sms.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tuanzi.loan.business.entity.sms.SmsUserDefinition;
import com.tuanzi.loan.business.repository.sms.SmsUserDefinitionRepository;
import com.tuanzi.loan.business.service.sms.SmsUserDefinitionService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.service.CommonServiceImpl;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Ray 2017/09/21
 */
@Debug
@Slf4j
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class SmsUserDefinitionServiceImpl extends CommonServiceImpl<SmsUserDefinition, Long> implements SmsUserDefinitionService {

	@Autowired
	private SmsUserDefinitionRepository smsUserDefinitionRepository;

	@Override
	protected JpaRepository<SmsUserDefinition, Long> getRepository() {
		return smsUserDefinitionRepository;
	}
}
